package com.hex.ds.hdtp.core.app.dqc.converter;

import com.hex.ds.hdtp.core.app.dqc.dto.request.DqcTaskRequestDto;
import com.hex.ds.hdtp.core.app.dqc.dto.response.DqcTaskResponseDto;
import com.hex.ds.hdtp.core.inf.dqc.po.DqcAuditLogPo;
import com.hex.ds.hdtp.core.inf.dqc.po.DqcTaskPo;
import liquibase.pro.packaged.S;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface IDqcTaskConverter {

    DqcTaskPo toDqcTaskPo(DqcTaskRequestDto dqcTaskRequestDto);

    List<DqcTaskResponseDto> toScriptConvertTaskResponseDtoList(List<DqcTaskPo> DqcTaskPos);

    @Mapping(source = "dqcTaskPo.pkId" ,target = "taskPkId")
    DqcAuditLogPo toLog(DqcTaskPo dqcTaskPo);

}
